package xyz.xtt.asset.service;

import com.baomidou.mybatisplus.extension.service.IService;

import xyz.xtt.asset.entity.TblAsset;
import xyz.xtt.asset.entity.TblAssetGroup;

/**
 * <p>
 * 赠送明细 服务类
 * </p>
 *
 * @author author
 * @since 2025-01-22
 */
public interface ITblAssetGroupService extends IService<TblAssetGroup> {
	/**
	 * 查询资对应的的群
	 * 
	 * @param assetId
	 * @return
	 */
	TblAssetGroup queryAssetGroup(Long assetId);

	/**
	 * 建群 加群
	 * 
	 * @param asset
	 * @param orderId
	 * @param uid
	 */
	boolean paySuccessJoinGroup(TblAsset asset, Long orderId, Long uid);

	String getImGroupId(Long assetId);

}
